class MyService {
  static MyService _instance;

  static MyService get instance => _service();

  MyService._();

  static MyService _service() {
    return _instance ??= MyService._();
  }
}